﻿using System.Web.Mvc;
using DRapid.Web.Mvc.Attributes;

namespace WebSite.Admin
{
    public partial class Startup
    {
        private void RegisterMvcGlobalFilters(GlobalFilterCollection filters)
        {
            filters.Add(new HandleErrorAttribute());
            var exceptionAttr = new ExceptionRouteAttribute();
            exceptionAttr.ReigserExceptionRoutes();
            filters.Add(exceptionAttr);
            filters.Add(new RequestParseAttribute());
        }
    }
}
